<?php
Zend_Loader::loadClass('My_Content');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Name       : Solutions 
Description: A two-column, fixed-width design for 1024x768 screen resolutions.
Version    : 1.0
Released   : 20091102

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>DAS</title>
<meta name="keywords" content="" />
<meta name="description" content="" />

<?php
echo $this->headLink()->appendStylesheet($this->baseUrl().'/css/style.css');
echo $this->headLink()->appendStylesheet($this->baseUrl().'/js/jquery/ui.multiselect.css');
echo $this->headScript()->appendFile($this->baseUrl().'/js/jquery/jquery-1.3.2.min.js');

echo $this->headScript()->appendFile($this->baseUrl().'/js/ckeditor/ckeditor.js');
echo $this->headLink()->appendStylesheet($this->baseUrl().'/js/ckeditor/ckeditor.css');

echo $this->headScript()->appendFile($this->baseUrl().'/js/vtip/vtip.js');
echo $this->headLink()->appendStylesheet($this->baseUrl().'/js/vtip/vtip.css');

echo $this->headScript()->appendFile($this->baseUrl().'/js/prototype/prototype.js');
echo $this->headScript()->appendFile($this->baseUrl().'/js/canvas_graph/javascript_canvas_graph_library.js');

$this->jQuery()->addStylesheet($this->baseUrl().'/js/jquery/themes/le-frog/jquery-ui.css')
               ->setLocalPath($this->baseUrl().'/js/jquery/jquery-1.3.2.min.js')
               ->setUiLocalPath($this->baseUrl().'/js/jquery/jquery-ui-1.7.2.custom.min.js');

//echo $this->headLink()->appendStylesheet($this->baseUrl().'/js/jquery/ui.multiselect.css');

echo $this->jQuery()
    ->setUiVersion('1.7.2');;
?>
<script type="text/javascript" src="<?=$this->baseUrl();?>/js/jquery/ui.multiselect.js"></script>
<script type="text/javascript" src="<?=$this->baseUrl();?>/js/jquery/plugins/scrollTo/jquery.scrollTo-min.js"></script>

<script>
 jQuery.noConflict();
</script>


</head>
<body>

    <div id="logo">
            <h1><a href="#">Datorizētā Apmācības Sistēma  </a></h1>
            <p><em> template design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></em></p>
    </div>
    <hr />
    <!-- end #logo -->
    <div id="header">
        <div id="menu">
            <?php
            $menuContent = new My_Content('PrimaryMenu');
            printf('<ul>%s</ul>', $menuContent->getContentBetweenTags('<li>', '</li>'));
            ?>
        </div>
        <!-- end #menu -->
        <div id="search">
            <form method="get" action="<?php echo $this->baseurl().'/search/'; ?>">
                <fieldset>
                <input type="text" name="s" id="search-text" size="15" />
                <input type="submit" id="search-submit" value="GO" />
                </fieldset>
            </form>
        </div>
        <!-- end #search -->
    </div>
    <!-- end #header -->
    <!-- end #header-wrapper -->
    <div id="page">
        <div id="content">
    <!--
          <div class="post">
                <h2 class="title"><a href="#">Welcome to Solutions </a></h2>
                <p class="meta"><em>Sunday, April 26, 2009 7:27 AM Posted by <a href="#">Someone</a></em></p>
                <div class="entry">
                        <p>This is <strong>Solutions </strong>, a free, fully standards-compliant CSS template designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>, released for free under the <a href="http://creativecommons.org/licenses/by/2.5/">Creative Commons Attribution 2.5</a> license.  You're free to use this template for anything as long as you link back to <a href="http://www.freecsstemplates.org/">my site</a>. Enjoy :)</p>
                        <p>Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum ipsum. Proin imperdiet est. Phasellus dapibus semper urna. Pellentesque ornare, orci in felis. </p>
                        <div><a href="#" class="links">Full Story</a></div>
            </div>
          </div>
    -->
    <?php echo $this->layout()->content; ?>

        </div><!-- end #content -->
        <div id="sidebar">
            <ul>
                <li>
                    <?php
                    if( Zend_Auth::getInstance()->hasIdentity() ) {
                        $user = Zend_Auth::getInstance()->getIdentity();
                        $header = $user['name'].' '.$user['surname'];
                        $info = '<a href="'.$this->baseurl().'/auth/logout" >Logout</a>';
                    } else {
                        echo new Default_Form_Login();
                    }
                    ?>
                    <h2><?php echo $header ;?></h2>
                    <p><?php echo $info; ?></p>
                </li>
                <li>
                    <h2>Menu</h2>
                    <?php
                    unset($menuContent);
                    $menuContent = new My_Content('SecondaryMenu');
                    printf('<ul>%s</ul>', $menuContent->getContentBetweenTags('<li>', '</li>'));
                    //echo $this->render('primary-navigation.phtml');
                    ?>
                </li>

            </ul>
        </div>
        <!-- end #sidebar -->
        <div style="clear: both;">&nbsp;</div>
    </div>
    <!-- end #page -->
    <div id="footer">
        <p>Copyright (c) 2008 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
    </div>
    <!-- end #footer -->
</body>
</html>
